import unittest
from Tools.TestHTTPRequest import TestHTTP
from Test_Result.HwTestReport_local import HTMLTestReport

#实例化
suite = unittest.TestSuite()
loader = unittest.TestLoader
suite.addTest(loader.loadTestsFromTestCase(TestHTTP))

with open('../Test_Result/HwTestReport_local/HwTestReport.html') as file:
    runner = HTMLTestReport.HTMLTestReport(
        stream=file,
        verbosity=2,
        title='张三疯',
        description='三丰无敌',
        tester='老张'
    )
runner.run(suite)